package com.etc.entity;


import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 订单实体类
 * @author 赵伟伟
 */
@Component
public class Orders {

    /**订单编号*/
    private String oId;

    /**书本编号*/
    private Integer bId;

    /**订单描述*/
    private String oTitle;

    /**商品数量*/
    private Integer oNum;

    /**商品总价*/
    private Double totalFee;

    /**商品图片*/
    private String oImg;

    /**商品状态*/
    private Integer oStatus;

    /**下单时间*/
    private String oData;

    private Books books;

    public Books getBooks() {
        return books;
    }

    public void setBooks(Books books) {
        this.books = books;
    }

    public String getoId() {
        return oId;
    }

    public void setoId(String oId) {
        this.oId = oId;
    }

    public Integer getbId() {
        return bId;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }

    public String getoTitle() {
        return oTitle;
    }

    public void setoTitle(String oTitle) {
        this.oTitle = oTitle;
    }

    public Integer getoNum() {
        return oNum;
    }

    public void setoNum(Integer oNum) {
        this.oNum = oNum;
    }

    public Double getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(Double totalFee) {
        this.totalFee = totalFee;
    }

    public String getoImg() {
        return oImg;
    }

    public void setoImg(String oImg) {
        this.oImg = oImg;
    }

    public Integer getoStatus() {
        return oStatus;
    }

    public void setoStatus(Integer oStatus) {
        this.oStatus = oStatus;
    }

    public String getoData() {
        return oData;
    }

    public void setoData(String oData) {
        this.oData = oData;
    }

    public Orders(String oId, Integer bId, String oTitle, Integer oNum, Double totalFee, String oImg, Integer oStatus, String oData) {
        this.oId = oId;
        this.bId = bId;
        this.oTitle = oTitle;
        this.oNum = oNum;
        this.totalFee = totalFee;
        this.oImg = oImg;
        this.oStatus = oStatus;
        this.oData = oData;
    }

    public Orders(Integer bId, String oTitle, Integer oNum, Double totalFee, String oImg, Integer oStatus, String oData) {
        this.bId = bId;
        this.oTitle = oTitle;
        this.oNum = oNum;
        this.totalFee = totalFee;
        this.oImg = oImg;
        this.oStatus = oStatus;
        this.oData = oData;
    }

    public Orders(Integer bId, String oTitle, Integer oNum, Double totalFee, String oImg) {
        this.bId = bId;
        this.oTitle = oTitle;
        this.oNum = oNum;
        this.totalFee = totalFee;
        this.oImg = oImg;
    }

    public Orders() {
    }

    @Override
    public String toString() {
        return "Orders{" +
                "oId='" + oId + '\'' +
                ", bId=" + bId +
                ", oTitle='" + oTitle + '\'' +
                ", oNum=" + oNum +
                ", totalFee=" + totalFee +
                ", oImg='" + oImg + '\'' +
                ", oStatus=" + oStatus +
                ", oData='" + oData + '\'' +
                '}';
    }
}
